package org.qy137;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.client.RestTemplate;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan(basePackages = {"org.qy137.dao"})
@EnableSwagger2
@EnableFeignClients //开启openfeign的注解
@EnableTransactionManagement    //事务
@ComponentScan("org.qy137")
public class HomeApp {
    public static void main(String[] args) {
        SpringApplication.run(HomeApp.class,args);
    }
    /*@Bean
    @LoadBalanced
    public RestTemplate getRestTemplate() { return new RestTemplate(); }*/


}